package com.raycloud.robot.consts;

import java.time.format.DateTimeFormatter;

public class DateConstant{
    public static final String DATE_TIME_FORMAT="yyyy-MM-dd HH:mm:ss";
    public static final String DATE_TIME_FILE_NAME_FORMAT="yyyy-MM-dd_HH-mm-ss";
    public static final String DATE_FORMAT="yyyy-MM-dd";
    public static final String TIME_FORMAT="HH:mm:ss";
    public static final DateTimeFormatter DATE_TIME_FORMATTER;
    public static final DateTimeFormatter DATE_TIME_FILE_NAME_FORMATTER;
    public static final DateTimeFormatter DATE_FORMATTER;
    public static final DateTimeFormatter TIME_FORMATTER;
    static{
        DATE_TIME_FORMATTER=DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        DATE_TIME_FILE_NAME_FORMATTER=DateTimeFormatter.ofPattern("yyyy-MM-dd_HH-mm-ss");
        DATE_FORMATTER=DateTimeFormatter.ofPattern("yyyy-MM-dd");
        TIME_FORMATTER=DateTimeFormatter.ofPattern("HH:mm:ss");
    }
}
